package com.design_pattern.decorator;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;

@Slf4j
public class Cilent {
    @Test
    public void test(){
        IBeauty iBeauty = new StudentBeauty();
        log.info("the old result is {}",iBeauty.getValue());
        StudentDecorator studentDecorator = new StudentDecorator(iBeauty);
        int value = studentDecorator.getValue();
        log.info("this result is {}",value);
    }
}
